import { defineStore } from "pinia";

export const useMainStore = defineStore("layout", {
  state: () => ({
    isCollapse: false,
    router_list: [
      {
        name: "试题配置",
        path: "/Configure",
        iconActive: "XiTongGuanLi",
        icon: "XiTongGuanLiS",
 
      },
      {
        name: "报名管理",
        path: "/Sign",
        iconActive: "YuYueGuanLi",
        icon: "YuYueGuanLiS",
      },
      {
        name: "测验结果",
        path: "/Result",
        iconActive: "ShiPuGuanLi",
        icon: "ShiPuGuanLiS",
     
      },
      {
        name: "专题管理",
        path: "/Topic",
        iconActive: "ShanShiSheZhi",
        icon: "ShanShiSheZhiS",
      },
      {
        name: "数学文化管理",
        path: "/Maths",
        iconActive: "KaYeWu",
        icon: "KaYeWuS",
      },
    ],
    activeIndexs: "",
    acriveList: [],
  }),

  actions: {
    setCollapse(data: boolean) {
      this.isCollapse = data;
    },
    setValue(data: string) {
      this.activeIndexs = data;
    },
    setList(data: any) {
      this.acriveList = data;
    },
  },
});
